d/p/2018.1/tests-Don-t-assume-uid-primary-gid.patch: Mark as applied upstream in...
authorSimon McVittie <smcv@debian.org>
Thu, 4 Jan 2018 13:01:36 +0000 (13:01 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 4 Jan 2018 13:01:36 +0000 (13:01 +0000)
debian/changelog
debian/patches/2018.1/tests-Don-t-assume-uid-primary-gid.patch [new file with mode: 0644]
debian/patches/series
debian/patches/tests-Don-t-assume-uid-primary-gid.patch [deleted file]

index 8bc06ba3750931237680509663a178d042a2243d..bd2be187c0befae37fad4a445cbf8195e11e09d2 100644 (file)
@@ -1,3 +1,10 @@
+ostree (2017.15-2) UNRELEASED; urgency=medium
+
+  * d/p/2018.1/tests-Don-t-assume-uid-primary-gid.patch: Mark as applied
+    upstream in 2018.1
+
+ -- Simon McVittie <smcv@debian.org>  Thu, 04 Jan 2018 12:58:50 +0000
+
 ostree (2017.15-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/2018.1/tests-Don-t-assume-uid-primary-gid.patch b/debian/patches/2018.1/tests-Don-t-assume-uid-primary-gid.patch
new file mode 100644 (file)
index 0000000..299c558
--- /dev/null
@@ -0,0 +1,47 @@
+From: Simon McVittie <smcv@collabora.com>
+Date: Sun, 10 Dec 2017 19:39:38 +0000
+Subject: tests: Don't assume uid == primary gid
+
+Nothing guarantees that each user has a group containing only
+themselves. Even if they do, nothing guarantees that its group ID
+equals the user ID, particularly if another user earlier in the same
+range was created without a corresponding group or vice versa.
+
+Signed-off-by: Simon McVittie <smcv@collabora.com>
+Forwarded: https://github.com/ostreedev/ostree/pull/1390
+Applied-upstream: 2018.1, commit:https://github.com/ostreedev/ostree/commit/f63e62fbd272edbdd9695a10d841fc6b5eb69df8
+---
+ tests/test-basic-user.sh | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/tests/test-basic-user.sh b/tests/test-basic-user.sh
+index 7f970b5..6987e4a 100755
+--- a/tests/test-basic-user.sh
++++ b/tests/test-basic-user.sh
+@@ -104,18 +104,20 @@ cd ${test_tmpdir}
+ rm -rf test2-checkout
+ $OSTREE checkout -H -U test2 test2-checkout
+ # With --link-checkout-speedup, specifying --owner-uid should "win" by default.
+-myid=$(id -u)
+-newid=$((${myid} + 1))
+-$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newid} --owner-gid ${newid} \
++myuid=$(id -u)
++mygid=$(id -g)
++newuid=$((${myuid} + 1))
++newgid=$((${mygid} + 1))
++$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newuid} --owner-gid ${newgid} \
+         --link-checkout-speedup -b test2-linkcheckout-test --tree=dir=test2-checkout
+ $OSTREE ls test2-linkcheckout-test /baz/cow > ls.txt
+-assert_file_has_content ls.txt "^-006.. ${newid} ${newid} .*/baz/cow"
++assert_file_has_content ls.txt "^-006.. ${newuid} ${newgid} .*/baz/cow"
+ # But --devino-canonical should override that
+-$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newid} --owner-gid ${newid} \
++$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newuid} --owner-gid ${newgid} \
+         -I -b test2-devino-test --tree=dir=test2-checkout
+ $OSTREE ls test2-devino-test /baz/cow > ls.txt
+-assert_file_has_content ls.txt "^-006.. ${myid} ${myid} .*/baz/cow"
++assert_file_has_content ls.txt "^-006.. ${myuid} ${mygid} .*/baz/cow"
+ $OSTREE refs --delete test2-{linkcheckout,devino}-test
+ echo "ok commit with -I"
index 555b640cb2216a37211e7f0654505c3b43727cf4..c5896f0cab678f507a0eb7b8df858f8f4df2367c 100644 (file)
@@ -1 +1 @@
-tests-Don-t-assume-uid-primary-gid.patch
+2018.1/tests-Don-t-assume-uid-primary-gid.patch
diff --git a/debian/patches/tests-Don-t-assume-uid-primary-gid.patch b/debian/patches/tests-Don-t-assume-uid-primary-gid.patch
deleted file mode 100644 (file)
index 25c1bdb..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From: Simon McVittie <smcv@collabora.com>
-Date: Sun, 10 Dec 2017 19:39:38 +0000
-Subject: tests: Don't assume uid == primary gid
-
-Nothing guarantees that each user has a group containing only
-themselves. Even if they do, nothing guarantees that its group ID
-equals the user ID, particularly if another user earlier in the same
-range was created without a corresponding group or vice versa.
-
-Signed-off-by: Simon McVittie <smcv@collabora.com>
-Forwarded: https://github.com/ostreedev/ostree/pull/1390
----
- tests/test-basic-user.sh | 14 ++++++++------
- 1 file changed, 8 insertions(+), 6 deletions(-)
-
-diff --git a/tests/test-basic-user.sh b/tests/test-basic-user.sh
-index 7f970b5..6987e4a 100755
---- a/tests/test-basic-user.sh
-+++ b/tests/test-basic-user.sh
-@@ -104,18 +104,20 @@ cd ${test_tmpdir}
- rm -rf test2-checkout
- $OSTREE checkout -H -U test2 test2-checkout
- # With --link-checkout-speedup, specifying --owner-uid should "win" by default.
--myid=$(id -u)
--newid=$((${myid} + 1))
--$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newid} --owner-gid ${newid} \
-+myuid=$(id -u)
-+mygid=$(id -g)
-+newuid=$((${myuid} + 1))
-+newgid=$((${mygid} + 1))
-+$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newuid} --owner-gid ${newgid} \
-         --link-checkout-speedup -b test2-linkcheckout-test --tree=dir=test2-checkout
- $OSTREE ls test2-linkcheckout-test /baz/cow > ls.txt
--assert_file_has_content ls.txt "^-006.. ${newid} ${newid} .*/baz/cow"
-+assert_file_has_content ls.txt "^-006.. ${newuid} ${newgid} .*/baz/cow"
- # But --devino-canonical should override that
--$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newid} --owner-gid ${newid} \
-+$OSTREE commit ${COMMIT_ARGS} --owner-uid ${newuid} --owner-gid ${newgid} \
-         -I -b test2-devino-test --tree=dir=test2-checkout
- $OSTREE ls test2-devino-test /baz/cow > ls.txt
--assert_file_has_content ls.txt "^-006.. ${myid} ${myid} .*/baz/cow"
-+assert_file_has_content ls.txt "^-006.. ${myuid} ${mygid} .*/baz/cow"
- $OSTREE refs --delete test2-{linkcheckout,devino}-test
- echo "ok commit with -I"